//
//  DDTopic.m
//  dingdang
//
//  Created by 阮 沧晖 on 15/6/28.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import "DDTopic.h"

@implementation DDTopicQuestionExplanation
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"description": @"description",
                                                      @"labels": @"labels",
                                                      @"id": @"id",
                                                      @"title": @"title",
                                                      @"type": @"type",
                                                      @"url": @"url",
                                                      @"text": @"text"
                                                      }];
}

@end

@implementation DDTopicQuestionOptionContent
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"description": @"description",
                                                      @"labels": @"labels",
                                                      @"id": @"id",
                                                      @"title": @"title",
                                                      @"type": @"type",
                                                      @"url": @"url",
                                                      @"text": @"text"
                                                      }];
}

@end

@implementation DDTopicQuestionOption
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"content": @"content",
                                                      @"currect": @"currect",
                                                      @"id": @"id",
                                                      @"label": @"label"
                                                      }];
}

@end


@implementation DDTopicQuestionBody
+(JSONKeyMapper *)keyMapper{
    
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"description": @"description_str",
                                                      @"id": @"id",
                                                      @"labels": @"labels",
                                                      @"text": @"text",
                                                      @"title": @"title",
                                                      @"type": @"type",
                                                      @"url": @"url"
                                                      }];
}

@end


@implementation DDTopicQuestion

+(JSONKeyMapper *)keyMapper{
    
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"answer": @"answer",
                                                      @"arrangment": @"arrangment",
                                                      @"body": @"body",
                                                      @"course": @"course",
                                                      @"courseName": @"courseName",
                                                      @"createTime": @"createTime",
                                                      @"emptyOption": @"emptyOption",
                                                      @"id": @"id",
                                                      @"explanation" :@"explanation",
                                                      @"options": @"options",
                                                      @"seconds": @"seconds",
                                                      @"orderIndex": @"orderIndex",
                                                      @"subjective": @"subjective",
                                                      @"tip": @"tip",
                                                      @"type": @"type",
                                                      @"typeName": @"typeName",
                                                      @"uid": @"uid"
                                                      
                                                      }];
}

@end


@implementation DDTopicDataCellModel

+(JSONKeyMapper *)keyMapper{
    
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"id": @"id",
                                                      @"uid": @"uid",
                                                      @"userName": @"userName",
                                                      @"userAvatarUrl":@"userAvatarUrl",
                                                      @"type": @"type",
                                                      @"title": @"title",
                                                      @"nickName" : @"nickName",
                                                      @"password": @"password",
                                                      @"reward": @"reward",
                                                      @"typeName": @"typeName",
                                                      @"maxRewardNumber": @"maxRewardNumber",
                                                      @"seconds": @"seconds",
                                                      @"showAnswer": @"showAnswer",
                                                      @"answerNumber": @"answerNumber",
                                                      @"answered": @"answered",
                                                      @"courseName":@"courseName",
                                                      @"solved": @"solved",
                                                      @"markResult": @"markResult",
                                                      @"createTime": @"createTime",
                                                      @"startTime": @"startTime",
                                                      @"questions": @"questions",
                                                      @"praiseNickName": @"click_like_man"
                                                      }];
}

@end


@implementation DDTopic
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"list": @"list",
                                                      }];
}
@end
